<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">


    <title>${siteName!""}--个人中心</title>
    <link rel="icon" href="/home/imgs/favicon.ico" type="image/x-icon">
    <link media="all" href="/home/css/index.css" type="text/css" rel="stylesheet">
    <link media="all" href="/home/css/user_center.css" type="text/css" rel="stylesheet">




</head>

<body>

<#include "../common/top_header.ftl">
<#include "../common/left_menu.ftl">

<div class="container">
    <div class="main center">

            <div class="head-img-box hide" id="head-img-box">
         <div class="wrap-head-img">
             <h3 class="head-title">
                 <span>头像设置</span>
                 <a id="close-head-img" class="close-head-img" href="javascript:;">X</a>
             </h3>
             <div class="head-img-area">
                 <div class="wrap-img" id="wrap-img" style="position: relative;">
                     <a href="javascript:;" id="upload-person-img" class="img-attr btn-upload-img " style="position: relative; z-index: 1;"><i>+</i>选择图片</a>
                     <p class="img-attr img-limit ">只支持JPG、PNG、GIF，大小不超过1M</p>
                     <img class="loading hide" src="/home/imgs/loading.gif" alt="" width="28" height="28">
                 <div id="" class="moxie-shim moxie-shim-html5" style="position: absolute; top: 0px; left: 0px; width: 0px; height: 0px; overflow: hidden; z-index: 0;">
                     <input id="selected-file" onchange="uploadImg()" style="font-size: 999px; opacity: 0; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;" accept="image/*" capture="camera" type="file">
                 </div>
                 </div>
             </div>
             <div class="head-img-footer">
                 <a href="javascript:;" class="btn-ok" id="upload-ok">确定</a>
                 <a href="javascript:;" id="cancel-img-box" class="btn-cancel">取消</a>
             </div>
         </div>
     </div>
        <!-- 头像设置结束 -->
        <div class="top clearfix" id ="user-top">
            <div id="user_msg">
                <div class="name" id="user_big_name">

                </div>

                <ul class="seller_attr">
                    <li>已发布商品：<span id="procount"></span></li>
                    <li>已出售积分：<span id = "userpoint"></span></li>

                </ul>
            </div>
            <div id="user_photo">
                <#if ncp_homeuser.useridPic??>
                    <img id="origin_ph" onclick="openUploadPanel()" src="/photo/view?filename=${ncp_homeuser.useridPic}" old-src="/photo/view?filename=${ncp_homeuser.useridPic}" alt="大头像">
                <#else>
                    <img  id="origin_ph"  onclick="openUploadPanel()" src="/home/imgs/avatar1.png" old-src="/home/imgs/avatar1.png">
                </#if>
                <img id="change_photo" src="/home/imgs/person_hover.png" alt="更换头像" style="display: none;">
            </div>
        </div>
        <ul id="middle_nav" class="clearfix">
            <li class="on"><a href="#">个人资料</a></li>
        </ul>
        <div class="pop-tip hide">
            <div class="pop-tip-area">
                <p class="pop-tip-txt">修改成功</p>
            </div>
        </div>
        <div id="my_info">
            <div id="account_info">
                <h2>账户信息</h2>
                <ul class="infos" id="userid">
                    <li>账号ID</li><li class="right_info">${ncp_homeuser.id}</li>
                </ul>
                <ul class="infos" id="userstate">
                    <li>认证状态</li>
                    <li class="right_info"><#if ncp_homeuser.status==1>正常<#else >冻结</#if></li>
                </ul>
            </div>
             <div id="account_info">
                <ul class="infos">
                    <li>账号</li>
                    <li class="right_info">${ncp_homeuser.userid}</li>
                </ul>
            </div>
            <div id="base_info">
                <h2>基本信息 <span id="edit_info">编辑</span><span id="save_info">保存</span></h2>
                <ul class="infos">
                    <li>昵称</li>
                    <li class="right_info">
                        <span id="nickname_span">${ncp_homeuser.nickname!""}</span>
                        <input value="${ncp_homeuser.nickname!""}" id="nickname" type="text">
                    </li>
                </ul>
                <ul class="infos">
                    <li>手机</li>
                    <li class="right_info">
                        <span id="phone_span">${ncp_homeuser.mobile!""}</span>
                        <input value="${ncp_homeuser.mobile!""}" id="mobile" type="text">
                    </li>
                </ul>
                <ul class="infos">
                    <li>QQ</li>
                    <li class="right_info">
                        <span id="qq_span">${ncp_homeuser.qq!""}</span>
                        <input value="${ncp_homeuser.qq!""}" id="qq" type="text">
                    </li>
                </ul>
                <ul class="infos">
                    <li>地址</li>
                    <li class="right_info">
                        <span id="college_span">${ncp_homeuser.address!""}</span>
                        <input value="${ncp_homeuser.address!""}" id="address" type="text">
                    </li>
                </ul>

            </div>
        </div>
        <ul id="middle_nav" class="clearfix">

            <li class="on"><a href="">我发布的商品</a></li>

        </ul>

        <div id="my_products">
            <div id="onsale_pro">


                <#if goodsList??>
                    <#list goodsList as goods>
                <div class="enshr_each" id="">
                       <div class="enshr_info">
                           <h2><a href="" title="${goods.name}">${goods.name}</a></h2>
                           <p>${goods.content}</p>
                           <p>库存：${goods.stock}</p>
                           <div class="enshr_state">
                           <span id="prostate">状态：正在出售</span>
                           &nbsp;&nbsp;<span id="prostate">上架日期：${goods.updateTime}</span>
                               <span class="enshrine_it" onclick="sellout(5);">确认售出</span>
                               <span class="enshrine_it make_edition" onclick="offshelf(68);">下架</span>
                               <span class="enshrine_it make_edition" onclick="refresh(124);">擦亮</span>
                               <a href="edit_goods?id=${goods.id}" target="_top">
                                   <span class="enshrine_it  make_edition">编辑</span>
                               </a>

                           </div>

                       </div>
                       <a href="http://hust.2shoujie.com/goods/186267">
                           <img class="enshr_ph" src="/photo/view?filename=${goods.photo}" alt="${goods.name}">
                       </a>
               </div>
                    </#list>
                </#if>
            </div>
        </div>


    </div>
</div>


<#include "../common/right_menu.ftl">
<#include "../common/bottom_fotter.ftl">
<script  src="/home/js/jquery-3.1.1.min.js"></script>
<script src="/home/js/user_center.js"></script>
<script src="/home/js/add.js"></script>

</html>
